﻿using Orchard.ContentManagement.Records;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NineSeas.Models
{
    public class NineSeasSettingsPartRecord: ContentPartRecord
    {
        #region Home Page
        public virtual int WeekFavouriteBookId { get; set; }
        public virtual int WeekMostViewedBookId { get; set; }
        public virtual int WeekFavouriteAuthorId { get; set; }
        public virtual int WeekRecommendedAuthorId { get; set; }
        #endregion

        #region Facebook Comments
        public virtual int FbCommentsNumberOfPosts { get; set; }
        public virtual int FbCommentsWidth { get; set; }
        public virtual string FbCommentsColorScheme { get; set; }
        #endregion

        #region Facebook Likes
        public virtual int FbLikesWidth { get; set; }
        public virtual string FbLikesColorScheme { get; set; }
        public virtual bool FbLikesEnableSendButton { get; set; }
        public virtual string FbLikesLayoutStyle { get; set; }
        public virtual bool FbLikesShowFaces { get; set; }
        public virtual string FbLikesVerbToDisplay { get; set; }
        public virtual string FbLikesFont { get; set; }
        #endregion

        #region Misc
        public virtual DateTime? LastWeekCalculationDate { get; set; }

        public virtual int BookFavouriteWeek { get; set; }
        public virtual int BookFavourite { get; set; }
        public virtual int BookMostViewedWeek { get; set; }
        public virtual int BookMostViewed { get; set; }
        public virtual int AuthorFavouriteWeek { get; set; }
        public virtual int AuthorNewBookWeek { get; set; }
        #endregion

        public NineSeasSettingsPartRecord()
            : base()
        {
            FbCommentsNumberOfPosts = 15;
            FbCommentsWidth = 500;
            FbCommentsColorScheme = "light";

            FbLikesWidth = 500;
            FbLikesColorScheme = "light";
            FbLikesEnableSendButton = true;
            FbLikesLayoutStyle = "standard";
            FbLikesShowFaces = false;
            FbLikesVerbToDisplay = "like";
            FbLikesFont = "arial";
        }
    }
}